<template>
	<div>
		<el-tabs v-model="activeName" class="person-rec-manage-tabs" @tab-click="handleClick">
			<el-tab-pane label="理财记录" name="first">
				<template #default>
					<div class="mt-10px">
						<ManageFinancial/>
					</div>
				</template>
			</el-tab-pane>
			<el-tab-pane label="定期记录" name="second">
				<template #default>
					<div class="mt-10px">
						<ManageRegular/>
					</div>
				</template>
			</el-tab-pane>
		</el-tabs>
	</div>
</template>
<script lang="ts" setup>
import ManageFinancial from './components/ManageFinancial.vue';
import ManageRegular from './components/ManageRegular.vue';
const activeName = ref('first');

const handleClick = (tab:any, event:any) => {
	console.log(tab, event);
};
</script>
<style lang="scss">
.person-rec-manage-tabs{
	.el-tabs__nav-wrap:after{
		display: none;
	}
	.el-tabs__header{
		margin: 0;
	}
	.el-tabs__item{
		font-size: 16px;
		color:#86909C;
		z-index: 2;
		padding: 5px 20px !important;
	}
	.is-active{
		color:#fff;
		&::after{
			content: "";
			width: 100%;
			height: 100%;
			background-color:  #3E5BF2;
			position: absolute;
			top: 0;
			left: 0;
			border-radius: 8px;
			z-index: -1;
		}
	}
	.el-tabs__active-bar{
		display: none;
	}
}
</style>
